import request from '@/sheep/request';

export default {
    //发票新增
	invoiceAddAPI: (data) =>
    request({
        url: '/api/invoice/add',
        method: 'POST',
        custom: {
            auth: true,
            showSuccess: true,
        },
        data,
    }),
    //发票详情
	invoiceViewAPI: (params) =>
    request({
        url: '/api/invoice/view',
        method: 'GET',
        custom: {
            auth: true
        },
        params,
    }),
    // 发票列表
    invoiceIndexAPI: (params) =>
    request({
        url: '/api/invoice/index',
        method: 'GET',
        params,
        custom: {
            auth: true
        },
    }),
    // 发票修改
    invoiceEditAPI: (data) =>
    request({
        url: '/api/invoice/edit',
        method: 'POST',
        data,
        custom: {
            auth: true,
            showSuccess: true,
        },
    }),
    // 发票删除
    invoiceDelAPI: (params) =>
    request({
        url: '/api/invoice/del',
        method: 'GET',
        params,
        custom: {
            auth: true,
            showSuccess: true,
        },
    }),
}